'use server';
import { db } from '@/lib/db';
import { httpClient } from '@/lib/http';

export const getThsInfo = async (secuCode) => {
    const url = `https://basic.10jqka.com.cn/mapp/${secuCode}/company_base_info.json`;
    const res = await httpClient.get(url);
    console.log(res);
    return res.data;
};

export const getTokens = async () => {
    const tokens = await db.$queryRaw`
        select tokens from dest_current where zt=1
    `;
    return tokens;
};
